package com.example.a2205douyin.db;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * 用来保存登录此手机的用户的账户信息
 */
@Entity(tableName = "account")
public class Account {
    @PrimaryKey(autoGenerate = true)
    private int id;//主键id--自增
    private String username;//账户名称
    private int money;//账户余额

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public Account(String username, int money) {
        this.username = username;
        this.money = money;
    }
}
